// 权限设置
import Layout from '@/layout'

const permissionRouter = {
  path: '/permission',
  component: Layout,
  redirect: '/permission/page',
  alwaysShow: true,
  name: 'permission',
  meta: {
    title: '权限管理',
    icon: 'lock'
  },
  children: [
    {
      path: 'role',
      component: () => import('@/views/permission/role'),
      name: 'permission.role',
      meta: {
        title: '角色管理'
      }
    },
    {
      path: 'operators',
      component: () => import('@/views/permission/operators'),
      name: 'permission.operators',
      meta: {
        title: '操作员例表'
      }
    },
    {
      path: 'log',
      component: () => import('@/views/permission/log'),
      name: 'permission.logs',
      meta: {
        title: '操作日志'
      }
    },
    {
      path: 'page',
      component: () => import('@/views/permission/page'),
      name: 'permission.page',
      meta: {
        title: '页面权限'
      }
    },
    {
      path: 'directive',
      component: () => import('@/views/permission/directive'),
      name: 'permission.directive',
      meta: {
        title: '指令许可'
      }
    }
  ]
}
export default permissionRouter
